package com.example.yjhuser.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yc.yjh.entity.Users;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper extends BaseMapper<Users> {

    @Select("select * from users where user_id =${id}")
    Users selectOneUserById(@Param("id") String id);

    @Select("select * from users where username =${username}")
    Users selectOneUserByName(@Param("username") String id);
}
